import { createApp } from "vue";
import { createPinia } from "pinia";
import piniaPluginpersistedstate from "pinia-plugin-persist";
import App from "./App.vue";
import router from "./router";

import "./assets/main.css";
import ElementPlus from "element-plus";
import zhCn from "element-plus/es/locale/lang/zh-cn";
import "element-plus/dist/index.css";

const app = createApp(App);
const store = createPinia();
app.use(ElementPlus, { locale: zhCn });
app.use(store);
store.use(piniaPluginpersistedstate);
app.use(router);

app.mount("#app");
